package com.team5101.service.impl;


import com.team5101.dao.IShowDao;
import com.team5101.entity.Show;
import com.team5101.service.IShowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShowServiceImpl implements IShowService {

    @Autowired
    private IShowDao iShowDao;

    public List<Show> queryShow(Show show) {
        return iShowDao.queryShow(show);
    }

    public Integer addShow(Show show) {
        return iShowDao.addShow(show);
    }

    public Integer updateShow(Show show) {
        return iShowDao.updateShow(show);
    }

    public Integer deleteShow(Integer id) {
        return iShowDao.deleteShow(id);
    }
}
